﻿using _RobotInspection.DTO;
using _RobotInspection.Entities;
using _RobotInspection.Models;

namespace _RobotInspection.Interfaces
{
    /// <summary>
    /// 关注事项相关服务层接口类
    /// </summary>
    public interface IAttentionItemService
    {
        /// <summary>
        /// 分页查询关注事项
        /// </summary>
        /// <param name="queryDto"></param>
        /// <returns></returns>
        Task<ApiResponse<AttentionItemPagedResultDto>> GetAttentionItemsPagedAsync(AttentionItemPagedDto queryDto);

        /// <summary>
        /// 按id查询关注事项
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResponse<attention_item>> GetAttentionItemByIdAsync(long id);

        /// <summary>
        /// 创建关注事项
        /// </summary>
        /// <param name="queryDto"></param>
        /// <returns></returns>
        Task<ApiResponse<attention_item>> InsertAttentionItemAsync(AttentionItemDto queryDto);

        /// <summary>
        /// 删除关注事项
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResponse<attention_item?>> DeleteAttentionItemAsync(long id);
    }
}
